function subOrthodont() {
    var reservationsId=document.getElementById("reservationsId").value;
    var num=document.getElementById("num").value;
    var b1 = $("#b1").val();
    var b2 = $("#b2").val();
    var b3 = $("#b3").val();
    var b4 = $("#b4").val();
    var b5 = $("#b5").val();
    if(b1==null || b1=="" || b1==undefined){
        alert("请输入口内照片打分");
        return false;
    }
    if(b2==null || b2=="" || b2==undefined){
        alert("请输入面型照片");
        return false;
    }
    if(b3==null || b3=="" || b3==undefined){
        alert("请输入X线照片打分");
        return false;
    }
    if(b4==null || b4=="" || b4==undefined){
        alert("请输入模型照片打分");
        return false;
    }
    if(b5==null || b5=="" || b5==undefined){
        alert("请输入补充资料打分");
        return false;
    }
    $.ajax({
        url: Feng.ctxPath + "/doctorLooked/subCoreB",
        type: "post",
        data: {
            "reservationsId": reservationsId,
            "num": num,
            "b1": b1,
            "b2": b2,
            "b3": b3,
            "b4": b4,
            "b5": b5
        },
        success: function (data) {
            Feng.success('操作成功!');
            window.parent.QualityAssurances.table.refresh();
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        }
    })
}

function storageOrthodont() {
    var reservationsId=document.getElementById("reservationsId").value;
    var num=document.getElementById("num").value;
    var b1 = $("#b1").val();
    var b2 = $("#b2").val();
    var b3 = $("#b3").val();
    var b4 = $("#b4").val();
    var b5 = $("#b5").val();
    $.ajax({
        url: Feng.ctxPath + "/doctorLooked/orthodonticScoringed",
        type: "post",
        data: {
            "reservationsId": reservationsId,
            "num": num,
            "b1": b1,
            "b2": b2,
            "b3": b3,
            "b4": b4,
            "b5": b5
        },
        success: function (data) {
            Feng.success('操作成功!');
            window.parent.QualityAssurances.table.refresh();
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        }
    })
}

$(function () {
    $("#complex_Content_nav > div").eq(0).click();
    $('#avatar99PreId,#avatar98PreId,#avatar97PreId,#avatar96PreId,#avatar95PreId,#avatar0PreId,' +
        '#avatar1PreId,#avatar2PreId,#avatar3PreId,#avatar4PreId,#avatar5PreId,#avatar6PreId,' +
        '#avatar7PreId,#avatar8PreId,#avatar9PreId,#avatar10PreId,#avatar11PreId,#avatar12PreId,' +
        '#avatar13PreId,#avatar14PreId,#avatar15PreId,#avatar16PreId,#avatar17PreId,#avatar18PreId,' +
        '#avatar19PreId,#avatar20PreId,#avatar21PreId,#avatar22PreId,#avatar23PreId,#avatar24PreId').Magnify({
        Toolbar: ['prev', 'next', 'rotateLeft', 'rotateRight', 'zoomIn', 'actualSize', 'zoomOut'],
        keyboard:true, draggable:true, movable:true, modalSize:[1100,700],
        beforeOpen:function (obj,data) {}, opened:function (obj,data) {},
        beforeClose:function (obj,data) {}, closed:function (obj,data) {},
        beforeChange:function (obj,data) {}, changed:function (obj,data) {}
    });
    if($("#doctorValue").val() == 'doctor'){
        $(".span-Scoring,.hideBtn").hide();
    }
    $(".cp_img_delete").hide();
});
$("#complex_Content_nav > div").click(function () {
    var index = $(this).index();
    $(this).addClass('selection').siblings().removeClass('selection');
    $("#complex_Content_con > div").eq(index).show().siblings().hide();
});


